﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Eis51.CampanyCMS.Model;
using Eis51.CampanyCMS.Business.BaseInfoMng;
using Eis51.CampanyCMS.Model.Bus;
using Eis51.CampanyCMS.Model.BaseInfoMng;

namespace Eis51.CampanyCMS.WebUI.Common
{
    /// <summary>
    /// 通过网址获得该网址属于哪个管理员
    /// </summary>
    public class GetSellerByUrlAddress: Page
    {

        protected override void OnLoad(EventArgs e)
        {
            GetSellerByUrl(Request.Url.Host);
            base.OnLoad(e);
        }

        public void GetSellerByUrl(string Host)
        {
            if (AppContext.CurrentAdminByUrl  == null)
            {
                AppContext.CurrentAdminByUrl = AdministratorBLL.GetInstance().GetSelleridByUrl(Host);
            }
            BuildPageBLL.GobalPara(this, AppContext.CurrentAdminByUrl);
        }



    }
}
